cyclopsmc / integratedrest Goto Github PK
View Code? Open in Web Editor NEWExpose Integrated Dynamics networks as a REST API
License: MIT License
Expose Integrated Dynamics networks as a REST API
License: MIT License
I set up a variable card, its ID is 10, Part ID is 20, and its value is 822.
xyz is also the same as the one in the game, I just made sure this is my variable card ID.
I found the json with "value"=822 in the "http://localhost:3000/networkElement" webpage, showing @id = 19.
I want to know if there is an accurate way for me to find the @id on the webpage through the variable card ID
it crashes
to not crash
Causing server tick loop when loaded as part of the Encrypted_ Modpack
See crash reports, log and debug log
Boot Server with encrypted_ modpack in a linux environment (windows untested)
(SP windows works fine)
IntegratedREST-1.18.2-1.1.5
Reported to modpack author as well.
latest.txt
i put variable carts to variable store while playing with http proxy, trying to get some logic with it. while putting cards into variable store, they aren't visible in system(proggrammed cards do not work), and they dissaper.and it crashed in 3 try to get it work and my test world is corrupted.
Please add an option to protect with password, token or whatever, so you can send requests with a second parameter for this basic auth(still better than nothing), so other people cant break you systems, by sending random http requests.
(I just want to make a reactor controller app for android, would be so much satisfaction to do, pls add)
Hello! I'm having a lot of fun building up my API, but one massive issue is that I need (AFAIU) to build a proxy block + a variable card for each values I want to GET, and then GET them separatly.
I was wondering if it was possible to GET a reader block directly and retrieve a JSON containing all the variables that reader has.
I know it's possible to query a reader but it just retrieves generics info about it and no values. Am I missing something?
Thanks lot !
I built the proxy. I took a bunch of attempts to post a variable to it, but it worked.
Then I switched it to "any" type, tried it again, but every time since then it caused the server to crash (Due to timeout (60s Tick)).
I downloaded the world and loaded it in single player (changed my URL to localhost) and ran it without issue.
Note: I am pretty sure this is not enough to recreate the bug in any world, but I don't have the resources to try
Variable updates like first time/in SP.
I will try to recreate this issue with a smaller set of mods if I have the time.
However, for now I want to note that when trying to GET some data, they did not load/took incredibly long to load (most prominently, the networkElement subpage). The biggest network on the server is around 90 cables and probably 25 connected elements in case that may be the issue.
Total stats:
Number of networks: 8
Sum of all cables: 169
Sum of elements: 86
Again, sorry for not having the smallest mod subset, I'm very pressed for time atm and the main priority was to get the Server back up and running.
I could not tell whether the tooling supports Linked Data Notifications or not. It briefly mentions it in https://github.com/CyclopsMC/IntegratedREST/wiki/HTTP-POST-requests and there appears to be an inbox assignment to a target resource in source code.
If the application fulfills (or plans to) sender, receiver, or consumer roles, it'd be great to see it pass the tests at https://linkedresearch.org/ldn/tests/ - so that we can see it at https://linkedresearch.org/ldn/tests/summary :)
i wanΒ΄t terminal to not print whole json, but only one value. i try to found it for hours.
i have simple setup with one redstone reader, and i want to get only the signal strengh. not loads of things like position, value type... in terminal.
Upon adding Integrated REST to my modpack, Minecraft crashes as startup with the following exception:
Exception in thread "main" java.lang.module.ResolutionException: Modules integratedrest and io.netty.resolver export package io.netty.resolver to module mekanism
at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901)
at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:815)
at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736)
at java.base/java.lang.module.Resolver.finish(Resolver.java:380)
at java.base/java.lang.module.Configuration.<init>(Configuration.java:140)
at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:75)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.buildTransformingClassLoader(TransformationServicesHandler.java:60)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:104)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)
The modules range from Mekanism to Caelus API to Dismount Entity (those I've observed so far, seems random each time I load). Integrated REST appears to be the common cause.
Minecraft should load without crashing.
Rest block crashes on inserting a blank variable card
Above
Whatever the mod is supposed to do
1.Place a HTTP Proxy, select some variable type (such as boolean), and put a variable inside so the variable is linked up with the proxy.
2. Do some computation with the previous variable and get a new variable.
3. Insert the HTTP variable and the new variable into separate screens to monitor their value.
4. Update the HTTP variable by sending something in Postman, Python, or whatever.
5. The HTTP variable gets updated, but the variable referencing it does not.
Variables referencing HTTP variables are updated when the referenced variables are updated via HTTP requests.
When you put a variable card that contains NBT data inside a display panel, the display panel's /part page will refuse to load.
Page loads and the NBT data is there.
https://gist.github.com/Waoweens/ecdd05f7c8f157c0ab2d3ae5abfee366
The game will crash when running this mod if there is a minecraft server running with the mod as well due to both of them trying to use the default port.
The game should give a warning (maybe in chat) about not being able to bind the port, but not crash. On servers, it should print an error message to the console, but not crash.
how i can get data from network, for example, from redstone reader?
The server process does not exit after the stop command has been run and saving completed.
Modlist:
CommonCapabilities-1.16.4-2.5.5.jar
CyclopsCore-1.16.4-1.9.3.jar
IntegratedDynamics-1.16.4-1.1.21.jar
IntegratedREST-1.16.4-1.1.1.jar
Default configs
I left the server in the half-stopped state for over 7 hours with no change.
Server process to exit after saving has been completed.
https://pastebin.com/hP25kxZ1 Nothing out of the ordinary
I am trying to GET from a part (using fetch) but the browser seems to block it because of CORS.
Adding the Access-Control-Allow-Origin
header to the response should fix this.
Straightforward request - can we get a version of this mod that doesn't add blocks, and can be run on a server without a client-side mod needing to be installed?
Reason: I see a few modpacks with ID that don't have this mod, and it'd be nice to be able to just drop this in without having to talk users through installing an additional mod.
A quick skim and a Discord conversation have revealed that REST does not provide support for the Recipe and Ingredients base types. I guess these got forgotten about?
version:
Command tried:
When fetching from the api the content-type is text/plain
curl -i URL_TO_API
content-type
The content-type
is application/ld+json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.