Comments (6)
The octo-client assumes that you'll be connecting to a remote computer, hence the DNS name lookup. Try using the OctoPrint's hostname, presumably octopi.local
and see if that works.
I use this library myself for a variety of projects so it's useful at least to me; hopefully to others as well.
from octo-client.
I used and it does not work
is there any way to do it locally using the IP
from octo-client.
I'll modify the code to allow the use of localhost
to equal 127.0.0.1.
from octo-client.
Thank you so much
from octo-client.
Sorry, I didn't catch this before. The hostName variable isn't a URL so it shouldn't be decorated with "http://" before it.
exports.hostName = 'localhost';
exports.apiKey = 'REDACTED';
exports.port = 80;
The next version should support changing the default port to 5000.
from octo-client.
Version 1.1.3 should now work with the new optional port config variable. Make sure to update your version. I've tested it using localhost
before/after the update and this works (assuming that you don't try to put a URL like before).
from octo-client.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octo-client.