Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
lukashwm 0
Hello folks,
I found this tutorial:
Please login or register to see this link.
, it also contains a link to this forum but the link itself is dead. I want to know if this is still possible because I can't get it to work.I can put the string in my url bar and it works. Like: http://myServer/data_post.php?type=temperature_sensor&name=exampleDevice&value=10.0&id=900 . It creates something in the database. So the webserver seems to run.
In HC2 device Overview the virtual device also confirms the button action by showing "Weather uploaded" but nothing happens.
The only difference is I got a webserver not a NAS to work as the database bridge. Also put the following inside the .htaccess file of the fibarostats folder to make sure its not a CORS policy problem.
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "http://myIpAdress"
Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
Header add Access-Control-Allow-Headers: "Content-Type"
Header add Access-Control-Allow-Credentials true
RewriteEngine on
RewriteBase /
</IfModule>
kind regards,
Lukas
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.