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.
Installation instructions for Freematics Hub
Re: Installation instructions for Freematics Hub
The maintenance has completed.
Re: Installation instructions for Freematics Hub
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
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
Re: Installation instructions for Freematics Hub
Hey Victor,
What did the config.h settings look like on your OBD dongle?
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
Re: Installation instructions for Freematics Hub
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
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