element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sci Fi Your Pi
  • Challenges & Projects
  • Design Challenges
  • Sci Fi Your Pi
  • More
  • Cancel
Sci Fi Your Pi
Blog PizzaPi: The Mosquitto struggle
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dmrobotix
  • Date Created: 10 Jun 2015 5:41 AM Date Created
  • Views 1656 views
  • Likes 3 likes
  • Comments 16 comments
  • design_challenge
  • pizza_pi
  • sci_fi_your_pi
Related
Recommended

PizzaPi: The Mosquitto struggle

dmrobotix
dmrobotix
10 Jun 2015

Hello, everyone!

 

Well, I've been struggling to get Mosquitto to play friendly with websockets. Has anyone else tried running Mosquitto with websockets enabled? I posted the following on someone's blog about running the MQTT server on a raspberry pi but it is still "awaiting moderation" so I'm reaching out to this wonderful community for some help! Otherwise, if I can't get it working, I'm just going to stick to the tried-and-true mqtt protocol and pass a text file to lighthttpd. Always have to have a back up plan!

 

I’m running mosquitto 1.4 on a raspberry pi. mosquitto is able to open a websockets port on 9001 and listen. I can connect fine but I get the socket error message: "Socket error on client , disconnecting." I’m using an example javascript Paho code found here:

https://www.eclipse.org/paho/clients/js/

Here is my mosquitto.conf:
allow_anonymous true
autosave_interval 1800
persistence true
persistence_file m2.db
persistence_location /var/lib/mosquitto/
#connection_messages true
#log_timestamp true
#log_type all
#log_dest file /var/log/mosquitto/mosquitto.log

listener 1883

listener 9001 127.0.0.1
protocol websockets

 

So, any thoughts?

In other news, I made this wonderful discovery. Film heating elements. I'm thinking of adding one to the delivery bag that I'm modifying so that it can maintain a decent internal temperature to keep the pizza(s) warm during travel. The idea is that the heating element can be monitored via the temperature sensor and (hopefully) adjusted via the RPis built into the bag.

Film heating element

The film heating elements vary in voltage, I've seen a lot of 12 and 24V ones but I did find a version on Sparkfun that would be ideal for the project and it warms up to approximately 65 degrees Celsius (150 degrees F). With some decent foam padding to insulate it, it could do a decent job of keeping things cozy.

  • Sign in to reply

Top Comments

  • dmrobotix
    dmrobotix over 10 years ago in reply to mcb1 +2
    Hm...interesting thought. I don't know if I like the idea of people handling hot tiles, plus they might make the bag too heavy. Still, I appreciate the suggestions!!!
  • DAB
    DAB over 10 years ago +1
    You might want to see if the cardboard box insulates the Pizza from your heater. You might need to have a little insert so that the heating element sits inside the box during transport. DAB
  • mcb1
    mcb1 over 10 years ago in reply to balearicdynamics +1
    Why an inverter? Simply because most are 230 (or 110) volts and relatively low wattage. They are completely waterproof and safe ... Mark
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to dmrobotix

    Almost both, Margot. It's a box in the box (wooden) that contains the cardboard pizzas. Usually 4 or 5 pizzas can fit. It is like a cushion box padded with something like thermic retaining aluminium foils or similar.

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dmrobotix
    dmrobotix over 10 years ago in reply to balearicdynamics

    Oh, cool. Thanks, Enrico. image

     

    Is the thermal cushion a kind of bag or like a pillow?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to dmrobotix

    Next days I can shoot some photos. Anyway they usually have a scooter with a cube (wooden) box on the back of their seat. Pizzas are inside something like a thermal cushion where they put pizzas around the town. They usually don't need to drive for too much Km so pizzas arrives to the "eater" almost hot.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dmrobotix
    dmrobotix over 10 years ago in reply to balearicdynamics

    Ah, cool. Well, when I was in college I worked at a pizza place but I haven't actually talked to a delivery guy in a while. I'm allergic to wheat so I don't normally order pizza delivery anymore. image The irony!

     

    But that's a good idea...what did he tell you? As far as I know, pizza delivery here isn't that impressive, and I'm mostly working on getting the delivery bag working.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to dmrobotix

    Margot, just a question image Do you had the option to see a pizza delivery guy? I have checked in depth and observed him and asked him just a couple of days ago when I was in town seeing the scooter pizza delivery guys in front of PizzaHut in Ibiza, waiting for orders. They was very happy to show me how the stuff worked.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube