Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete configuration for riverrock-dev #23

Open
simonerom opened this issue Jul 29, 2022 · 5 comments
Open

Incomplete configuration for riverrock-dev #23

simonerom opened this issue Jul 29, 2022 · 5 comments

Comments

@simonerom
Copy link
Member

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 added a commit that referenced this issue Jul 30, 2022
@Tide00
Copy link
Collaborator

Tide00 commented Jul 30, 2022

Thanks for your feedback, the issue has been fixed.

@simonerom
Copy link
Member Author

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
Copy link
Member Author

simonerom commented Aug 1, 2022

@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
Copy link
Collaborator

Tide00 commented Aug 2, 2022

@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
Copy link

IMG_20240402_014839_506
is there a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants