Am I the only one that can not use the setProperty command in python?
I think that I have the latest blynk python library but I am not sure, i’d love to have a link to check it.
I did a pip install of the library, I downloaded from GitHub this library from the clone or download button
(when I use this library I cant even run the program, it says that the
), also I downloaded from the downloads button in the readme section of the GitHub page(this runs but it seams there isn’t a setProperty setting) but had no luck.
My code:
OK, I managed to manually install (aka copy over) the ver.0.2.0 Blynklib.py and it also gives me the same error, on a previously good script, when trying to account for my local server… which I now assume you were doing with the cryptic '111'
And to add to the fun… I did find this in the ver.0.2.0 Blynklib.py file…
But that file is actual dated prior to the previously referenced topic about it missing… and of course that version seems to have issues configuring with a local server… All so very confusing I am too exhausted to look into it anymore… right now…
Hey thanks for the research, yes I know that I already asked this in an other topic but some other blynkers commented on my topic and used the setProperty command and I think that they said it worked. That’s why I wanted to create a new clean topic with all the libraries I’ve installed just to make sure that it’s not already added.
Is there a way to automatically update the library when there is an update?
Also the ‘111’ is the ip of my local server(as correctly you assumed).
Also I’m so happy that you found it on the v2.0 that means it will work soon! That’s again…!!
For more info:
it says that the set_property takes exactly 4 arguments, 1 the self and 3 that the user gives(I suppose).
for the opacity, scale and rotation it works, for the url and urls it dosent.
All working fine for me but I am using external urls:
# initialize Blynk
blynk = BlynkLib.Blynk(BLYNK_AUTH, 'someserver.com', 80)
def blynk_connected():
# You can also use blynk.sync_virtual(pin)
# to sync a specific virtual pin
print("Updating V2 from the server...")
blynk.sync_virtual(2) # just sync V2
blynk.set_property(3, "urls", "https://peacefairapp.com/fota/pzem/images/PubBot.png") # OK update image on V3
well I don’t know how is that possible…
can you please provide me a peace of code with virtual write?
press a button on v6 and update the url on the image widget v5.
I’m really excocted with this situation… 1 or 2 months I’m trying to figure this out