Hi, I’m trying to post multiple variables with a retrospective absolute timestamp, using HTTP post
I saw a previous topic about multiple values and putting it together with another answer, I came up with this:
Here is my data - is this supported? is the syntax correct? I am using the python ‘requests’ library to do this, I get a 400 error code.
[{‘Ambient_Light’: {‘value’: 2.29, ‘timestamp’: 1580514430806}, ‘Dawn2Dusk’: {‘value’: -13, ‘timestamp’: 1580514430806}, ‘Drynessmap’: {‘value’: ‘11111111’, ‘timestamp’: 1580514430806}, ‘High2Low’: {‘value’: 33, ‘timestamp’: 1580514430806}, ‘Humidity_In’: {‘value’: 52.6, ‘timestamp’: 1580514430806}, ‘Humidity_Out’: {‘value’: 57.3, ‘timestamp’: 1580514430806}, ‘Levelmap’: {‘value’: ‘10101111’, ‘timestamp’: 1580514430806}, ‘LightTotal’: {‘value’: 338, ‘timestamp’: 1580514430806}, ‘Openingmap’: {‘value’: ‘10010110’, ‘timestamp’: 1580514430806}, ‘Pressure_Out’: {‘value’: 1030.4, ‘timestamp’: 1580514430806}, ‘Temperature_1’: {‘value’: 23.5, ‘timestamp’: 1580514430806}, ‘Temperature_2’: {‘value’: 23.5, ‘timestamp’: 1580514430806}, ‘Temperature_3’: {‘value’: 23.7, ‘timestamp’: 1580514430806}, ‘Temperature_4’: {‘value’: 26.0, ‘timestamp’: 1580514430806}, ‘Temperature_5’: {‘value’: 24.5, ‘timestamp’: 1580514430806}, ‘Temperature_6’: {‘value’: 23.0, ‘timestamp’: 1580514430806}, ‘Temperature_In’: {‘value’: 24.2, ‘timestamp’: 1580514430806}, ‘Temperature_Out’: {‘value’: 23.1, ‘timestamp’: 1580514430806}, ‘Wind_Direction’: {‘value’: 69.0, ‘timestamp’: 1580514430806}}]
For info, I am able to post this the below data in real time, and it works fine
{‘Temperature_3’: 23.7, ‘Temperature_Out’: 23.1, ‘Temperature_5’: 24.5, ‘Temperature_4’: 26.0, ‘High2Low’: 33, ‘Openingmap’: ‘10010110’, ‘Wind_Direction’: 69.0, ‘Temperature_1’: 23.5, ‘Dawn2Dusk’: -13, ‘Ambient_Light’: 2.29, ‘Temperature_In’: 24.2, ‘Pressure_Out’: 1030.4, ‘Humidity_Out’: 57.3, ‘Humidity_In’: 52.6, ‘LightTotal’: 338, ‘Temperature_6’: 23.0, ‘Drynessmap’: ‘11111111’, ‘Temperature_2’: 23.5, ‘Levelmap’: ‘10101111’}