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
Harmen070 0
Hi all,
Based on the following idea i was checking out the possibilities for my HC2:
Please login or register to see this link.
I created several variables and notifications which should send pushover messages when the basic variable is changed from None to the kind of Garbage.
Now i'd like to create a LUA script to check the current date which can be checked in the output of my JSON file, if there is any kind of Garbage today.
Output is like:
[{"afvalstroom_id":138,"ophaaldatum":"2018-01-02","timestamp":1514847600},{"afvalstroom_id":132,"ophaaldatum":"2018-01-05","timestamp":1515106800}]
In this case my ophaaldatum is the date to check (current date == ophaaldatum), and if these date are the same my predefined variable must be changed to example:
138 = GFT
132 = PMD
In this case is the situation when today is 2018-01-02 i'll want a pushover message that i have to remember the GFT garbage.
Please help me out, how can i check the JSON file (which is located
Please login or register to see this link.
) and translate it to change my predefined variable?13 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.