Installation instructions for Freematics Hub

Discussion about software developed by Freematics, including Freematics Hub, Freematics Builder, 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: 897
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
Post Reply