Giter Site home page Giter Site logo

Comments (3)

NickWaterton avatar NickWaterton commented on August 14, 2024

What is the output when you start roomba.py? Please post the whole thing.

Also post your version of complicated.py.

from roomba980-python.

algorytmix02 avatar algorytmix02 commented on August 14, 2024

What is the output when you start roomba.py? Please post the whole thing.

Also post your version of complicated.py.

if I run python3 roomba.py

root@Adguard:~/Roomba980-Python/roomba# python3 roomba.py
CV or numpy module not found, falling back to PIL
PIL module not found, maps are disabled
CV or numpy module not found, falling back to PIL
PIL module not found, maps are disabled
CV or numpy module not found, falling back to PIL
PIL module not found, maps are disabled
[2022-06-26 19:32:58,007] INFO *******************
[2022-06-26 19:32:58,008] INFO * Program Started *
[2022-06-26 19:32:58,008] INFO *******************
[2022-06-26 19:32:58,008] INFO Roomba.py Version: 2.0i
[2022-06-26 19:32:58,008] INFO Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
[2022-06-26 19:32:58,009] INFO Paho MQTT Version: 1.6.1
[2022-06-26 19:32:58,009] INFO to Exit
[2022-06-26 19:32:58,009] INFO Roomba MQTT data Interface
[2022-06-26 19:32:58,009] INFO Using Password version 2.1
[2022-06-26 19:32:58,010] INFO reading/writing info from config file ./config.ini
[2022-06-26 19:32:58,011] INFO 1 Roombas Found
[2022-06-26 19:32:58,011] INFO Creating Roomba object 192.168.0.75, Pedro
[2022-06-26 19:32:58,012] INFO Using Password version 2.1
[2022-06-26 19:32:58,012] INFO Posting DECODED data
[2022-06-26 19:32:58,013] INFO Connecting...
[2022-06-26 19:32:58,014] INFO Setting TLS
[2022-06-26 19:32:58,016] INFO Setting TLS - OK
[2022-06-26 19:32:59,184] INFO Roomba Connected
[2022-06-26 19:32:59,662] INFO Received Roomba Data: $aws/things/35

and my complicated.py

import asyncio
from roomba import Roomba
import paho.mqtt.client as mqtt
import time
import json
import logging

#Uncomment the following two lines to see logging output
logging.basicConfig(level=logging.INFO,
      format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

#put your own values here
broker = '192.168.0.103'    #ip of mqtt broker
user = 'jeedom'           #mqtt username
password = 'jeedom'   #mqtt password
#broker = None if not using local mqtt broker
address = '192.168.0.75'
blid = "3552201771294B429900B57E990AEC02"
roombaPassword = ":1:1654789638:XCZyZCphbiv6aLf0"

loop = asyncio.get_event_loop()

#myroomba = Roomba(address)  #minnimum required to connect on Linux Debian system, will read connection from config file
myroomba = Roomba(address, blid, roombaPassword, webport=8200)  #setting things manually

#all these are optional, if you don't include them, the defaults will work just fine
#if you are using maps
myroomba.enable_map(enable=True, mapSize="(800,1650,-300,-50,2,0)", mapPath="./", iconPath="./res")  #enable live maps, class default is no maps
if broker is not None:
    myroomba.setup_mqtt_client(broker, 1883, user, password, '/roomba/feedback') #if you want to publish Roomba data to your own mqtt broker (default is not to) if you have more than one roomba, and assign a ro$
#finally connect to Roomba - (required!)
myroomba.connect()

print("<CMTRL C> to exit")
print("Subscribe to /roomba/feedback/# to see published data")

try:
    loop.run_forever()

except (KeyboardInterrupt, SystemExit):
    print("System exit Received - Exiting program")
    myroomba.disconnect()

thank you for your reply

from roomba980-python.

NickWaterton avatar NickWaterton commented on August 14, 2024

Ok, you are trying to use maps with no graphics modules loaded.

You need at least PIL, and preferably OpenCV installed for the maps.html web page to work.

Try pip3 install Pillow to install PIL, and see if that helps.

See https://pillow.readthedocs.io/en/stable/installation.html for full instructions.

Better yet, install OpenCV, this can be quite complicated though.

from roomba980-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.