|
Post by m3m0r3x on Oct 12, 2015 19:07:05 GMT
Hi xtr4nge,
unfortunately I have some troubles while starting FruityDisplay. As I told you in other posts I have allready played arround with the Adafruit PiPlate and it works well on my Pi where FruityWifi is running. But when I tried to start your code the first issue was, that ther was no screen library. Thanks to goolge I downloaded it. Error Message about Screen.py was gone.
Unfortunately this was not all the of my troubles. While starting FruityDisplay I get this output. And I don't know how I can fix it. Certainly it's just a trifle but I can't fix it.
$ ./FruityDisplay.py
___ _ _ __ ___ ___ _ ___ _ _
| __| _ _ _(_) |_ _ \ \ / (_) __(_) | \(_)____ __| |__ _ _ _
| _| '_| || | | _| || \ \/\/ /| | _|| | | |) | (_-< '_ \ / _` | || |
|_||_| \_,_|_|\__|\_, |\_/\_/ |_|_| |_| |___/|_/__/ .__/_\__,_|\_, |
|__/ |_| |__/
Site: http://www.fruitywifi.com
Twitter: @fruitywifi @xtr4nge
[*] Establishing session with FruityWiFi server...
[+] Session established. Have fun ;)
[*] FruityDisplay v1.0
Traceback (most recent call last):
File "./FruityDisplay.py", line 160, in <module>
lcd = Adafruit_CharLCDPlate()
File "/home/pi/FruityDisplay/lib/Adafruit_CharLCDPlate.py", line 81, in __init__
self.i2c = Adafruit_I2C(addr, busnum, debug)
File "/home/pi/FruityDisplay/lib/Adafruit_I2C.py", line 36, in __init__
busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
IOError: [Errno 2] No such file or directory
Gr33tz
mem
|
|
|
Post by m3m0r3x on Oct 12, 2015 20:55:49 GMT
Ok, i fixed it by my self. Damn how stupid ^^. just reading te comments helped a lot :-D. The autodetection of the i2c bus did not work correctly (on my raspi2). After parsing a 1 to the row:
lcd = Adafruit_CharLCDPlate()
--> lcd = Adafruit_CharLCDPlate(1)
and it works.
|
|
|
Post by xtr4nge on Oct 14, 2015 13:14:02 GMT
Hi m3m0r3x, Cool, good to know that you are already playing with FruityDisplay and also that you solved the problem.
I will add new screens options as soon as I can.
If you have any question, please let me know.
regards,
|
|
|
Post by atomikhawk on Oct 20, 2015 22:00:34 GMT
Cant seem to find the screen lib. Can someone point me to it?
|
|
|
Post by m3m0r3x on Oct 21, 2015 9:07:45 GMT
Hi,
have found it on my system. I'm actualy not at home so I can't give you the path. But i just made a "locate screen.py" and than made a copy to the FruityDisplay folder. That worked for me. When this did not help ou I can loo at my system for the path when I am back from work.
Greetings
m3m
|
|
|
Post by xtr4nge on Oct 21, 2015 13:11:19 GMT
Hi guys, For the moment the Screen.py lib is not required (is work in progress) I added a dummy Screen.py file to fix the problem. Also, you can just comment the line out:
# from lib.Screen import *
Regards
|
|
|
Post by atomikhawk on Oct 21, 2015 21:33:00 GMT
Ok, script started, but im getting JSON errors now..
___ _ _ __ ___ ___ _ ___ _ _
| __| _ _ _(_) |_ _ \ \ / (_) __(_) | \(_)____ __| |__ _ _ _
| _| '_| || | | _| || \ \/\/ /| | _|| | | |) | (_-< '_ \ / _` | || |
|_||_| \_,_|_|\__|\_, |\_/\_/ |_|_| |_| |___/|_/__/ .__/_\__,_|\_, |
|__/ |_| |__/
Site: http://www.fruitywifi.com
Twitter: @fruitywifi @xtr4nge
[*] Establishing session with FruityWiFi server...
[+] Session established. Have fun ;)
[*] FruityDisplay v1.0
Traceback (most recent call last):
File "FruityDisplay.py", line 132, in <module>
for line in out.json():
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 805, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Admittedly I'm super new to python, and coding in general. Do i need to test something with the screen first to make sure this works properly.
|
|
|
Post by xtr4nge on Oct 23, 2015 16:47:32 GMT
Hi atomikhawk Please ensure that you have the latest version (requests):
pip install --upgrade requests
Do you have modules installed? Do you have API module installed?
Try to pull the modules manually using the API:
http://{IP}:8000/modules/api/includes/ws_action.php?token={TOKEN}&api=/module
(replace {IP} and {TOKEN} with your details)
What is the output?
Please let me know regards,
|
|
|
Post by atomikhawk on Oct 25, 2015 12:35:38 GMT
root@kali:~# pip install --upgrade requests
Requirement already up-to-date: requests in /usr/local/lib/python2.7/dist-packages
http://{IP}:8000/modules/api/includes/ws_action.php?token={TOKEN}&api=/module
This results in a 404 error, i attempted to regenerated the token, and reboot my pi but no success here.
|
|
|
Post by xtr4nge on Oct 25, 2015 16:17:17 GMT
Hi atomikhawk, It looks like you don't have the API module installed. Without the API module, FruityShell neither FruityDisplay will work. Go to the modules page from FruityWiFi web-interface, and install the API module. REF: github.com/xtr4nge/module_apiregards,
|
|
karl
New Member
Posts: 3
|
Post by karl on Mar 14, 2016 15:00:43 GMT
layer 8 problem, sorry
|
|