How to have a persistent var on raspberry ?

GBO02
2017-11-12
2018-01-03
  • GBO02 - 2017-11-12

    Hello
    I have make a small program, working well with wago 750 I/O Ethernet IP.
    Parameters enter in webvisu, are not saved at each raspberry daily boot.
    I have put them in "persistent vars", but they seem not be so persistents....
    How to have persistent var on rapsberry ?

    i have seen this post but i'am looking for a a quick an simple solution :
    l viewtopic.php?f=21&t=8275 l

    i have found a lot of other post, but i don't find to esay my information.

    In my program (for this moment) i have got 2 parameters :
    People, enter this parameters in th webvisu. I would like to have a subrutine, looking if parameter saved are same in the screen, if yes, nothing appened, if no save them.

    Thanks

     
  • eschwellinger

    eschwellinger - 2017-11-12

    Hi,
    the message is:
    If you want to use retains on raspberry you need a UPS, which triggers a proper/graceful shutdown of the
    Linux system.
    BR
    Edwin

     
  • GBO02 - 2017-11-18

    Can you explain me plz ?
    Thanks

     
  • jbarrio - 2018-01-02

    A question if the retain variables are saved in a USB device can also be corrupted by an unexpected closure?

    best regards

     
  • eschwellinger

    eschwellinger - 2018-01-02

    Hi,
    yes,
    if you just remove the power supply without a graceful shutdown - yes
    for both retains on sd or other media the only solution is to have an UPS.

    BR
    Edwin

     
  • jbarrio - 2018-01-03

    Hi Thanks for request.
    Not existing nothing hardware for raspberry, to add memory not volatile to raspberry?

    Enviado desde mi Plus E mediante Tapatalk

     

Log in to post a comment.