cpppo icon indicating copy to clipboard operation
cpppo copied to clipboard

Weather.py example local test

Open checor opened this issue 8 years ago • 3 comments

Hello,

I want to be able to test the example weather.py from the same machine.

First, I opened the source and put my own API key. Then I run the example using python weather.py, and then, in another terminal, tried to get the temperature of a city using tags, with something like python -m cpppo.server.enip.get_attribute "New York", but it seems that __getitem__ is never called.

Should I use a specific CIP Class/Instance/Attribute to obtain weather of a city? Or another tool?

Many thanks in advance, your library has helped me to introduce myself to this protocol.

checor avatar Jan 17 '18 02:01 checor

hi Checor,

I also want to try the same in my linux machine , but couldn't succeeded . Please let me know did you find any clue ? and how to test it in two terminals ?

Thanks in advance :)

shangarnithi avatar Feb 15 '19 07:02 shangarnithi

hello shangarnithi,

As far I can recall, I couldn't make it work locally, but I could try another time.

checor avatar Feb 15 '19 16:02 checor

@checor Thanks for the reply. If it is between two different system in same network also fine for me ...

Thanks

shangarnithi avatar Feb 20 '19 04:02 shangarnithi