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
    About the element14 Community
  • 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 1711 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
Parents
  • DAB
    DAB over 10 years ago

    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

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

    The deliveries I've seen use a foil lined bag to put the whole thing in to keep it warm..

     

    You might be better off just using a pet warmer and an inverter off the car.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • mcb1
    mcb1 over 10 years ago in reply to DAB

    The deliveries I've seen use a foil lined bag to put the whole thing in to keep it warm..

     

    You might be better off just using a pet warmer and an inverter off the car.

     

    Mark

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

    Why an inverster?

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

    Why an inverter?

    Simply because most are 230 (or 110) volts and relatively low wattage.

    They are completely waterproof and safe ...

     

    Mark

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

    Oh, silly me, I have not considered this option image !

     

    Thanks. Enrico

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

    Hey Mark,

     

    Do you mean something like this?

    http://www.dog.com/item/kh-mfg-self-warming-gray-dog-crate-pad/494958/

     

    Thanks everyone for the great feedback. Still trying to figure out the websockets issue.

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

    Margot

    That appears to be a self warming ... ie it reflects the pets heat back.

     

    I was thinking of the heated ceramic tiles, but there are small electric blanket versions on ebay.

    http://www.ebay.com/bhp/pet-heating-pad

    http://www.khpet.com/pet-bed-warmer.html

     

    The other suggestion while searching was heating a ceramic tile in a 200 deg oven, it then retains that heat.

    I'm sure that pizzas come from somewhere, so maybe that could get slipped into the bag with the pizza in its box and keep the whole thing warm.

     

    Mark

    • 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