iotexproject / pebble-apps

4 stars 6 forks source link

Incomplete configuration for riverrock-dev #23

Open simonerom opened 2 years ago

simonerom commented 2 years ago

I've used the python script to configure the Riverrock-dev firmware so as only to send GPS data, I enabled precise_gps=true, but it doesn't seem to work well:

The problem is that while it's not sending climate data and gas resistance, it's still sending ambient light, accelerometer and gyroscope. Moreover, the GPS location is precisely as inaccurate as with the default firmware.

image

The location I'm getting is

 "latitude": "45.4799999",
  "longitude": "9.1500000",

that is exactly what I was getting before I set the configuration.

Here is the configuration I've sent:

selected_sensor  = sensor.DATA_CHANNEL_GPS
# endpoint = "a11homvea4zo8t-ats.iot.us-east-1.amazonaws.com"
endpoint = "a11homvea4zo8t-ats.iot.ap-east-1.amazonaws.com"
port = 8883
precise_gps = True
network = sensor.PEBBLE_CONTRACT_TEST_NET
aws_cert_file = './mqtt_cert/certificate.pem'
aws_key_file = './mqtt_cert/private.pem'
aws_root_key = './mqtt_cert/root.pem'
Tide00 commented 2 years ago

Thanks for your feedback, the issue has been fixed.

simonerom commented 2 years ago

Thanks for your feedback, the issue has been fixed.

Thank you. Is it also possible to set the data sending interval from the python script?

simonerom commented 2 years ago

@Tide00 I've just tested the new firmware, but I can't see any change in the behavior. This is the configuration I've sent to the device:

selected_sensor  = sensor.DATA_CHANNEL_GPS
endpoint = "a11homvea4zo8t-ats.iot.ac-east-1.amazonaws.com"
port = 8883
upload_period = 30
precise_gps = True

And this is the data point it has sent:

        "id": "351358813374789-1659359173",
        "latitude": "40.9200000",
        "longitude": "14.4200000",
        "temperature": 0,
        "humidity": 0,
        "pressure": 0,
        "gas_resistance": 0,
        "accelerometer": "[1093,7673,1314]",
        "gyroscope": "[-1122,-248,562]",
        "light": 3.6,
        "timestamp": 1659359173,

Notice that it's still sending Light, accelerometer, and gyroscope data even if I've disabled them, and the GPS location is still rounded to the second decimal. Also, the period is still 5 minutes and not 30 seconds as specified in the new configuration

Tide00 commented 2 years ago

@simonerom Thanks for your feedback, I've released a version and tested all configuration items. https://github.com/iotexproject/pebble-apps/releases/tag/v1.0.2-riverrock-dev Firmware version information: App Name: riverrock-dev Version: 1.0.2

platien82 commented 6 months ago

IMG_20240402_014839_506 is there a solution