hamishcunningham / pi-tronics

Source code for Raspberry Pi GATE projects.
http://pi.gate.ac.uk/
42 stars 15 forks source link

Where is the config file? (Raspberry) #97

Closed ronisegoly closed 7 years ago

ronisegoly commented 7 years ago

I modified the config using mopicli but after reboot it returns to default

hamishcunningham commented 7 years ago

Hi, what platform and versions are you using, and how do you verify that the change isn't persisted?

This is the script that stores and retrieves config data on the Pi (which is stored separately on the MoPi microcontroller): https://github.com/hamishcunningham/pi-tronics/blob/master/simbamon/mopi

It stores the Pi version of the data relative to the installation directory of the script -- so it depends on how you installed it...

HTH, H

ronisegoly commented 7 years ago

I ran mopicli -wc2 1 12000 10000 8000 6500 Then mopicli -e Made sure the above is the result for source 2 I rebooted I ran mopicli -e again The output is Source #2 conf: Source type: Rechargeable batteries Maximum voltage: 11200 mV Good voltage: 10000 mV Low voltage: 8800 mV Critical voltage: 8000 mV

hamishcunningham commented 7 years ago

Can you try it with the mopi command instead? Does the same thing but should give you an error message if it fails to talk to the board

On 24 Dec 2016 03:42, "ronisegoly" notifications@github.com wrote:

I ran mopicli -wc2 1 12000 10000 8000 6500 Then mopicli -e Made sure the above is the result for source 2 I rebooted I ran mopicli -e again The output is Source #2 https://github.com/hamishcunningham/pi-tronics/pull/2 conf: Source type: Rechargeable batteries Maximum voltage: 11200 mV Good voltage: 10000 mV Low voltage: 8800 mV Critical voltage: 8000 mV

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/hamishcunningham/pi-tronics/issues/97#issuecomment-269067323, or mute the thread https://github.com/notifications/unsubscribe-auth/AEMQlE2C9enTgx0rq_DABRjdeDKSHxmMks5rLJSigaJpZM4LUt28 .

ronisegoly commented 7 years ago

you mean the mopi interface (like raspi-config)? I do not see how I can change the voltage level there BTW I was on RPI 3, does it matter?