Installation instructions for Freematics Hub

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
sponz
Posts: 1
Joined: Fri Mar 26, 2021 6:44 pm

Installation instructions for Freematics Hub

Post by sponz »

Hi,

I have installed Freematics Hub for Windows and Linux (latest versions), but:

- I can't login from the simulator -> it always says "Login failed"
- When entering into the hub with any ID, I get the message "Server under maintenance (status: 404)"

I don't see the Data directories. What should I do?

Is there any installation guide?

Thanks a lot in advance.
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: Installation instructions for Freematics Hub

Post by stanley »

The maintenance has completed.
victorch
Posts: 11
Joined: Wed Jun 10, 2020 11:42 pm

Re: Installation instructions for Freematics Hub

Post by victorch »

Hi sponz,


I had similar experience "Server under maintenance(status:404), click OK" on linux platform.
I need to make 1 change on \Freematics-master\server\teleserver\htdocs\config.js (remove hub in the
path) as following, then the maintenance message disappears. Hope this help.

Search below and change :

from: const serverURL = window.require ? "http://localhost:8080/api/" :
(window.location.href.indexOf("localhost") > 0 ? "/api/" : "hub/api/");

to: const serverURL = window.require ? "http://localhost:8080/api/" :
(window.location.href.indexOf("localhost") > 0 ? "/api/" : "/api/");

Best regards and thanks,

Victor
wally2511
Posts: 11
Joined: Fri Apr 09, 2021 3:11 pm

Re: Installation instructions for Freematics Hub

Post by wally2511 »

Hey Victor,

What did the config.h settings look like on your OBD dongle?

Code: Select all

// Freematics Hub server settings
#define SERVER_HOST "hub.freematics.com"
#define SERVER_PROTOCOL PROTOCOL_HTTP
#endif 

// HTTPS settings
#define SERVER_METHOD PROTOCOL_METHOD_POST
#define SERVER_PATH "/hub/api"

#if !SERVER_PORT
#if SERVER_PROTOCOL == PROTOCOL_UDP
#define SERVER_PORT 8081
#elif SERVER_PROTOCOL == PROTOCOL_HTTP
#define SERVER_PORT 80
#elif SERVER_PROTOCOL == PROTOCOL_HTTPS
#define SERVER_PORT 443
#endif
#endif
victorch
Posts: 11
Joined: Wed Jun 10, 2020 11:42 pm

Re: Installation instructions for Freematics Hub

Post by victorch »

Hi Matt,

I got below setting of SERVER_PATH in the config.h as followings :

// HTTPS settings
#define SERVER_METHOD PROTOCOL_METHOD_POST
#define SERVER_PATH "/api"

#if !SERVER_PORT
#if SERVER_PROTOCOL == PROTOCOL_UDP
#define SERVER_PORT 8081
#elif SERVER_PROTOCOL == PROTOCOL_HTTPS
#define SERVER_PORT 443
#endif
#endif

Cheers,

Victor
willams
Posts: 9
Joined: Thu Sep 26, 2024 3:26 pm

Re: Installation instructions for Freematics Hub

Post by willams »

To install the Freematics Hub, first, connect the device to the OBD-II port of your vehicle, ensuring a secure fit. Next, download the Freematics app on your smartphone and create an account. Follow the app's prompts to pair the Hub via dish network billing problems Bluetooth. Finally, configure the settings as needed to monitor vehicle data and access various features for enhanced performance and diagnostics.
limeglum
Posts: 1
Joined: Wed Oct 16, 2024 3:37 pm

Re: Installation instructions for Freematics Hub

Post by limeglum »

It's help alot. thx
Post Reply