Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Pictures of OSPi Hardware Installation #24635

    martinpihrt
    Member

    Hi all,
    here is my OSPi hardware installation…
    http://www.pihrt.com/elektronika/248-moje-rapsberry-pi-zavlazovani-zahrady


    in reply to: Plugin installation – opinions please #27721

    martinpihrt
    Member

    Hi all,
    intercede for updates from git (with git can not handle yet), but I somehow wrote a plugin for sms, pressure, email, and lcd display. Currently doing the update so that i will send sms with command update (sms system receives and updates from the git dan, that I always current system – fixed at a distance). I would also like to see the web interface of a button to check for updates. When you click on the key can be previewed window changes or corrections, and then I clicked on the update.

    For example, for my sms plugin need another system tools (gammu python). For lcd display (LCD library for I2C pylcd.py) …

    I would be happy if they were somewhere plugins (dan git?) centrally.

    They would not bother me as a user to download all the plugins always with updates.

    I would welcome the plugins menu a button that would plugin permitted or prohibited, without having to manually change the permissions. Thank you all for a great job on OSPi. Sorry for my English

    in reply to: OSPi new pressure water sensor #26755

    martinpihrt
    Member

    @martinpihrt wrote:

    Hello, I need advice.

    I need to finish the good ospi software water pressure sensor, I do not know where place this rutine.

    a) Annex is a flowchart of my problem (circuit)
    c) screen home page and settings

    Vars held in the settings dict (gv.sd)

    ups:0 Use Pressure sensor (0=no, 1=yes, o50)
    tups:0 Type Pressure sensor (0=NC, 1=NO, o52)
    pss:0 Pressure sensed (o53)
    tpss:2 Time delay Master station ON to pressure sensed (0-10sec, o54)

    Thank you for advice on where to insert code…

    I apologize for my English

    http://www.pihrt.com/elektronika/248-moje-rapsberry-pi-zavlazovani-zahrady

    Martin Pihrt

    Thanks its OK:
    http://pihrt.com/elektronika/248-moje-rapsberry-pi-zavlazovani-zahrady

    #
    
    pokud je povoleno mereni tlaku sepne master, bezi nejaky cas, musi byt tlak potom stanice
    if gv.sd and gv.sd != 0 and not gv.sd: # pokud je povoleno mereni tlaku, je povolena master stanice a neni rucni rezim
    if master_on: # master sepnul dle programu
    if now-last_tlak_cas > gv.sd: # pokud ubehl cas do kdy musel byt tlak
    if gv.sd: # je cidlo tlaku aktivni?
    print "Cidlo tlaku je aktivni"
    else:
    print"Cidlo tlaku nesepnulo do nastavene doby, stop zalevani!"
    master_on = False
    stop_stations()
    text_log = "Chyba zalevani - hlavni stanice sepla, ale do stanovene doby se neaktivoval snimac tlaku"
    SMS_log_run(time.time(),text_log) # zapis do logu
    #----odeslani chybove SMS, pokud je povoleno
    if gv.sd: # je povoleno odesilani chybove SMS
    if gv.sd: # je povoleno odeslat na tel. cislo 1
    gv.sd = 0 # zakazeme v sms loop pouzivat modem
    jsave(gv.sd, 'sd')
    print "Odesilam stavovou SMS na telefon 1:",gv.sd, text_log
    sms = text_log+'| gammu --sendsms TEXT '+gv.sd
    cmd = '/bin/echo %s' % sms
    print 'zpracovavam "%s"' % cmd
    os.system(cmd)
    gv.sd = 1 # povolime v sms loop pouzivat modem
    jsave(gv.sd, 'sd')
    if gv.sd: # je povoleno odesilani stavove SMS
    gv.sd = 0 # zakazeme v sms loop pouzivat modem
    jsave(gv.sd, 'sd')
    print "Odesilam stavovou SMS na telefon 2:",gv.sd, text_log
    sms = SMStext_log+'| gammu --sendsms TEXT '+gv.sd
    cmd = '/bin/echo %s' % sms
    print 'zpracovavam "%s"' % cmd
    os.system(cmd)
    gv.sd = 1 # povolime v sms loop pouzivat modem
    jsave(gv.sd, 'sd')
    if gv.sd: # pokud je povoleno zasilani emailu
    text = text_log
    priloha = ""
    predmet = "Hlaseni o probehlem programu zalevani"
    get_email(gv.sd,predmet,text,priloha) # odeslani emailu
    last_tlak_cas = now
    #
Viewing 3 posts - 1 through 3 (of 3 total)