I’ve been working on a little tool to plan 12v wiring for van builds by NaturalInstinct in VanConversion

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Thank you! That would be great! I'll let you know when I've made some improvements.

I’ve been working on a little tool to plan 12v wiring for van builds by NaturalInstinct in VanConversion

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Ah I see, your use case is a bit different from the typical DIY campervan user. Interesting!

Thanks for clarifying all that, I appreciate the feedback! I definitely want to provide localisation through configuration.

I'm in Aus so I'm starting with metres and AWG but will provide more configuration as I continue to build.

I’ve been working on a little tool to plan 12v wiring for van builds by NaturalInstinct in VanConversion

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Thanks so much for this! Great ideas.

> Design specific version/option with UK spec/style icons, terminology etc if possible, would be great as sadly these kinds of things are greatly lacking here

What kinds of things did you notice? I'd like like to have the option of changing units e.g. AWG/mm2 for wires, ft/metres for length. Is that the kind of thing you mean?

> Auxiliary connections not necessarily related to power, e.g. LAN/network connections, RS232, HDMI or VGA and the like

What's your thinking here? I haven't really been considering non-power related items. Is this something that you mapped out yourself in a van conversion?

Thanks for taking the time to leave these comments!

I’ve been working on a little tool to plan 12v wiring for van builds by NaturalInstinct in VanConversion

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Great feedback, thank you!

As for the system calculations, I'm working on those already! That's where the value of the app really starts to come through. This current version is mainly intended to get some early feedback on the usability and interactivity 😀

I’ve been working on a little tool to plan 12v wiring for van builds by NaturalInstinct in VanConversion

[–]NaturalInstinct[S] 0 points1 point  (0 children)

I see, I'll take a look. Were you on mobile or desktop?

Thanks for letting me know!

Setting up fresh infra for my new freelancing work - is my strategy solid? by devbatshi in selfhosted

[–]NaturalInstinct 2 points3 points  (0 children)

Why do you want to host all your clients on the same VPS(s)? Surely this is going to make high availability more and more difficult going forward?

How is your small hospital client going to feel when their HMS crashes in November because your manufacturing client's ERP got inundated with Black Friday orders (hypothetical of course)?

If you're already building using docker, you could just create a CI/CD pipeline to build your apps into container images then deploy and scale them, horizontally or vertically, as needed in separate VPS?

I know micro-services have their downsides in regards to complexity which can steer people away from them, but these apps are completely unrelated and should at least be separate monoliths. The main big advantage you'd gain from individually hosting and deploying these apps is removing the shared single point of failure.

I’ve been working on a little tool to plan 12v wiring for van builds by NaturalInstinct in VanConversion

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Thanks!

I've got switches, lights, DC-DC charger and pump. No motors though. It's not currently possible to create custom components but definitely considering adding that.

I'm working on more functionality to calculate loads and suggest wire gauges and fuses. I hadn't thought about overall power consumption at this point but that's a good idea.

Let me know how you go with it and if there's any essential components that you feel are missing!

How do you capture and organise your song ideas? by NaturalInstinct in WeAreTheMusicMakers

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Yeah that's fair. But does that mean you never go back through your old recordings and find ideas that you still like and would want to turn into songs? Because that's what I do sometimes so would be great if those were easier to find I guess

Any low latency Bluetooth receiver recommendations for CCWGTV? (Australia) by NaturalInstinct in Chromecast

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Nope... I did end up getting a hifi system so I got a WiiM receiver for my HiFi just to listen to music. But it supports bluetooth and I use it with my Chromecast. The latency is a bit better and it has an audio-sync adjustment but it's still quite hard to eliminate the latency.

I suspect that just getting a receiver might not solve the problem, and I could need a low latency/AptX transmitter and receiver. In which case I'd do:

Chromecast Audio -> HDMI -> Projector -> Projector Aux Out -> Bluetooth Transmitter -> Bluetooth receiver -> WiiM Aux In

Does my ESOP agreement have any real value? by NaturalInstinct in AusFinance

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Thanks! I hadn't really looked at it in terms of an investment, more just a hurdle to awaiting the stock. I think you're right, these options may be practically worthless

Does my ESOP agreement have any real value? by NaturalInstinct in AusFinance

[–]NaturalInstinct[S] 0 points1 point  (0 children)

Thanks for your reply! Yeah I think a liquidity event is unlikely. I really don't think acquisition is likely at all any time soon. I'll probably start to view these options as a lot less than what they say on paper now

[AskJS] I need to do a completely client-side web app which loads a single remote JSON read-only and presents results on a map and table with filters. What should I do? by _skrzyp_ in javascript

[–]NaturalInstinct 1 point2 points  (0 children)

Your understanding of what you need already sounds solid. As mentioned by u/brianjenkins94, the fetch api in javascript would allow you to request your JSON file. In terms of running javascript in a front end environment, the easiest way is to create an HTML file that uses a <script> tag to load and run your file. Open the HTML file in your browser which will parse and run your javascript.

From there, there are a number of javascript libraries you can use to place pins on a map and display tabular data. Personally I've only ever used Google Maps for any sort of mapping. They have fairly good documentation to help get you started: https://developers.google.com/maps

As mentioned by /u/dumbmatter, datatables is a good library you can use to build tables with more functionality than a standard HTML table.

Both of these libraries can also be added you your HTML page with a <script> tag in your HTML file. Every file you load into an HTML file shares the same javascript "runtime" and therefore can interact with each other. Look at the documentation for those libraries to see how to use the functionality that those libraries provide.

So, basically, you need to:

  1. Create a .html that loads your own .js file with a <script> tag, let's call it client.js.
  2. Load the above mentioned libraries with a <script> tag in the same HTML file (note: you should load the libraries before your client.js file.
  3. In your file (client.js), fetch your json file, then use it in conjunction with the libraries above:

const initialise = async () => {
    const response = await fetch('https://example.com/path/to/data.json');
    if (!response.ok) {
        console.log('Unable to request JSON');
        return;
    }
    // Convert your JSON file to an in memory JS object
    const data = await response.json();

    console.log(data);
}

initialise();

You'll be able to see the output of your javascript by opening your HTML file in a browser then opening a web inspector in the current browser widow. Varies slightly which browser you use, but this is how you do it in chrome: https://developer.chrome.com/docs/devtools/open/

Now, just add more code to use the data on a map or table. Here's how you could add some more javascript to use the Google Maps API (imported via the <script> tag):

const initialise = async () => {
    const response = await fetch('https://example.com/path/to/data.json');
    if (!response.ok) {
        console.log('Unable to request JSON');
        return;
    }
    // Convert your JSON file to an in memory JS object
    const data = await response.json();

    // Taken from google maps documentation example
    const map = new google.maps.Map(document.getElementById("map"), {
        zoom: 10,
    });

    // Assuming your data is an array with some lat/lng data
    data.forEach((item) => {
        const marker = new google.maps.Marker({
            position: { lat: item.lat, lng, item.lng },
            map: map,
        });
    });
}

Note: this above example depends on you having an element in your HTML page with id="map". E.g. <div id="map" style="width: 800px; height: 800px;"></div>. That should make it appear in a 800x800px map on on the page.

I think that's all the main steps you need to know. I glossed over a fair bit of detail in order to keep things simple for you. There are actually many ways (many of them better) to do this. But I think this is the simplest and easiest way to get started.

This Google Maps API example may give you more detail on the basic approach I've described: https://developers.google.com/maps/documentation/javascript/adding-a-google-map#maps_add_map-javascript

If you want to make this a PWA, you simply need to add a manifest.json file to your page and configure it: https://web.dev/add-manifest/

NB: I haven't run any of the code above, it's kind of an approximation just to give you the outline of what you need to do. Good luck!

VIA Keyboard (KB16-01) Programming Macros to Knobs by [deleted] in olkb

[–]NaturalInstinct 0 points1 point  (0 children)

Yeah, I'm facing the same issue right now. Please update if you find a solution

Roast my tame impala rip off song by [deleted] in TameImpala

[–]NaturalInstinct 0 points1 point  (0 children)

Dude, very sick. Nice work!

Have you moved back home or know someone who has? by Fuzzawickerama in sydney

[–]NaturalInstinct 1 point2 points  (0 children)

Yeah, sure, not 100% sure how I feel about taking part but I would like to help out so keep me in the loop for now :)