Oct-04-2018, 09:46 AM
if mybutton != previousstate: if mybutton == True: print "Du har post :)" res = p.push("Min Raspberry Pi", 'Advarsel', 'Luke Lukket', batch_mode=False) else: print "Du har post :)"res on line 4 brings you out of the first if statement so else from second if(line 2) shouldn't do anything. is that intentional?