It is easy to set POST parameters for HTTP request.
The Flow Diagram
node red set post parameters for http request flow diagram
Steps To Set Get Parameters
1) Inject Node
– Payload – can set to anything. In my case I use timestamp
node red inject node
2) Function Node
– Set POST parameters value here
– msg.headers must set the content type.
– All the POST parameters are set inside msg.payload and the parameter names must correspond to RESTFUL API that you query.
It is easy to set GET parameters for HTTP request. You need to use the mustache brackets inside the URL itself.
The Flow Diagram
node red http request flow diagram
Steps To Set Get Parameters
1) Inject Node
– Payload – can set to anything. In my case I use timestamp
node red inject node
2) Function Node
– Set parameter GET value here
– In my case I use parameter name “path” and “limit”, set as msg.path and msg.limit
– You can use any name for your parameter name but it be the same as in HTTP Request Node
node red function node set get http request parameters
3) HTTP Request Node
– Choose method: GET
– In the URL, use mustache brackets to declare your variable {{{path}}}
– The parameter name must be same as in the Function Node
I do a lot of new wiring for my properties. Usually I just hire electrician or civil contractors to do wiring without much thought whether the wires they used are suitable or not in term of ampacity (the maximum current the conductor can carry continously).
Until one day, one electrician told me the wires that I used for my fan and lamps are too thin to carry the current. It could pose fire risks. This is eyes opener.
Few days after I got the advise, one of new wiring was overloaded. The wires inside were burnt.
wires burnt due to overload – it is used for fridge and air fryer using 0.75mm wires
So I did my own studies as a guidelines to me, so when I hire an electrician I would know whether the wires and the way they connect to the electric power is able to support or no the possible current usage.
Guidelines on Wires Size
This is a guidelines only better check with your trusted or certified electrician.
If the same wire use for fan, lamps, fridge etc, you must add all the amperes and from the derive the required wire cross sectional area.
Of course usually, electrician will put extra buffer for the wire size.
Usage
Expected Power (Watts)
Expected Current (Ampere)
Expected Wire Size - Cross sectional area (mm2)
Advisable Connection Type
Ceiling Fan
75
0.3125
0.5
Direct / Plug
Aircond (1 HP)
750
3.125
1.5
Direct
Water Heater
3,600
15
2.5
Direct
Fridge (450L)
46
0.1917
0.5
Direct / Plug
Air Fryer
1,400
5.83
2.5
Direct
Lamps
75
0.3125
0.5
Direct / Plug
Washing Machine
500
2.083
1.5
Direct
Ampacity based on single phase
Connection Type
This is my own definition not electrician definition. There are two types of connection:-
Use plug to existing plug point
Tap direct into existing wires in plug point.
Use Plug
The maximum current is 13 ampere as the fuse can only handle up to that ampere.
use plug of 13 amp
Direct Loop to Existing Plug Point
This is better at maximum if not mistaken it is loop directly to existing cable of 2.5mm2 or supported maximum current of around 22 ampere.
loop direct to plug point
What to Avoid For Wiring
Water Heater
For water heater, don’t use plug better use direct loop to existing wires. Especially water heater produces vapor that might cause short circuit and easily makes the wiring wear and tear faster.
burnt plug where water heater using plug
What is Watt, Ampere & Volts?
Watt is power unit with formula as below:
Watt (W)= Amperage (A) x Voltage (V)
Analogy with water garden hose:-
Water come out from garden hose (watts) = Water volume (Amperage) x Water pressure (voltage)
What is Wire Cross Sectional Area?
It is actually the area size of the wire “circle”. In Math, the formula for area of a circle = pi*radius^2
For example, based on below diagram the cross sectional area calculation
1
2
3
4
cross sectional area=pi*(101.9/2)^2
=3.142*50.95^2
=3.142*2,595.9
=8,156.3
cross sectional area of conductor
Recommendation on Wire Size
1
2
3
Ligthing&Ceiling Fan:1.5mm2
Aircond1.5HPandbelow:2.5mm2
Adding newplug/power point:2.5mm2
Recommended Wiring Contractor
Below is my recommended wiring contractor for Shah Alam or Kota Damansara area.
Azworld Tech (Azrin) – 0 17-376 0530
Appointment on time
Expert and reasonable charging
References
Formula Wheel Electrics – reference sengpielaudio.com
Haahaa.. This year, 2019 is my Indonesian helper 10th years in service. Not like last year (2018) this time, it was way easier to do permit renewal because I didn’t need to send her for FOMEMA check-up. steps for maid permit renewal
Since she just got back from her hometown for two months break, her work permit validity only left about one month.
To make things easy for us before she went back for her hometown, I cleared all the processes. Below is how to renew maid permit for 2019:-
Prepare employment contract with Indonesian Embassy.
Renew her passport. (Because to renew her work permit with immigration, her passport validity must no less than 3 months of expiry from her 1 year renewal term of work permit).
We have been making few staycation trips at Genting Highland just to have feel of living and enjoying view up the hills.
Within month of August 2019, we make 2 trips. Each stay around 2 to 3 nights using AirBNB booking facilities for homestay. Only one of the homestays provides induction stove for cooking which we decided not to spent time on cooking but just eat out and explore food places.
I will share one good place, we hunt for food up here.
Choice #1: NOK SOKMO GENTING TOMYAM – Restoran Masakan Thai dan Masakan Kampung
Location: Genting Permai, in front of GEO38 Condominium.
Latitude Longitude: 3.386584, 101.774920
This restaurant serving delicious halal Thai cuisines which most of the night time all tables are taken. Make sure you come early for dinner (before 7.30pm) so your order come quick and no need to wait for vacant table.
We ate few times there just because of its satisfying flavours and at affordable price.
Ordered same dishes were never bored for me laa. Hehehe. So this was the food that we ate repeatedly.
Tomyam Ayam, Telur Dadar, Kailan Ikan Masin, Kangkung Belacan and Ayam Pad KrapowIkan siakap masak tiga rasa at Genting Permai
Price range for all of the above within RM91 – RM94, with 5 bowls of plain rice and ice water or maybe with additional 1 or 2 glasses of teh tarik and kopi O. Food deliciously cook and worth the price. Cheaper for that 5-6 lauk.
It is cheap and good food especially in Genting now the food price is expensive.
You may explore other foods which they also serve ‘masakan kampung’. tapi belum try lagi sebab yang atas tu sedap sangat. ;P
OTHER MENU:
Aneka Nasi Menu at Genting PermaiMasakan Ayam at Genting PermaiMasakan daging and seafood at Genting Permailain – lain specialty at Genting Permai
I want to know programmatically whether listings posted at Mudah.My are similar or not even though it is posted by different persons and different date.
To do this, I think the best way is to detect whether the photos are similar or not.
Why To Know Same Property Is Advertised Over Period of Time?
I would like to know whether the property
1) price change over time, signalling time to purchase it
2) possibility owner becomes desperate to let it go if advertised for quite some time. So I can get better price
Same Property But Advertised by Different Agents and Different Date
All listings refer to same property by evaluating using naked eyes.
So now, I want to detect programmatically that all the listings are referring to same property by detecting those photos are similar.
Fingerprinting the photos is using image hashing technique. In this case, DHash will be used.
Step 2: Compare the Photos
After fingerprinting, image hash will be compared among listings. If the image hash are same or Levenshtein distance is less or equal to 2, then we can consider as the listings are referring to same property.
Results
Photos
Size
Noticeable Features
Image Hash
(DHash)
Listing 1 - Kitchen
18KB
480x480
Kitchen - listing 1 ,listing 3 and listing 6 are similar
cc6c7a727e7c3e77
Listing 2 - Kitchen
19KB
640x480
Has door and wall fan
3f37333333333339
Listing 3 - Kitchen
18KB
480x480
cc6c7a727e7c3e77
Listing 4 - Kitchen
17KB
480x480
Kitchen - Listing 4 color is lighter compared to listing 1, 3 & 6
cc6e7a727e7c7e77
Listing 6 - Kitchen
18KB
480x480
cc6c7a727e7c3e77
Listing 2 - Bedroom
22KB
640x480
similar with bedroom listing 5 only size is different.
e1b90d0c8ccc84c1
Listing 5 - Bedroom
10KB
320x240
e1b52d0c8ccc84c1
Kitchen Photos
If we take Listing 1 as a base, we can say easily that it has same image hash with Listing 3 & Listing 6.
Listing 1 has Levenshtein distance of 2 with Listing 4.
Listing 1 has Levenshtein distance of 15 with Listing 5.
Bedroom Photos
Listing 2 and Listing 5 has Levenshtein distance of 2.
Conclusion
We can conclude photos are similar if their image hash is the same or their Levenshtein distance is less or equal to 2.
False Positive
What happens if different properties use same photos such as signage or building block? The algorithm will detect it as same property even though it is not.
To avoid this, we should establish a database of signage or building block to remove this false positive.
“TIME YOU ENJOY WASTING IS NOT WASTED TIME” – Marthe Troly-Curtin, Phrynette Married.
As a parent we need to educate our kids on how important for them to manage their time wisely. To get them to value time they need to be discipline.
I remembered during my younger age there was no electronics, gadgets or apps that could help to manage my schedule or alerted me to do a certain task. What I did was to prepare a scrapped book with tasks/ actions segregated by time frame on day to day basis. For example; at 5.oo – 5.30pm (watering plant & fold cloth), 6.oopm (shower) … felt guilty when didn’t follow it.
But these activities are more to routine and will become meticulous even though it’s important to be time conscious. So we focus on the time filling instead.
We introduced our boy to music lesson which he chose to play drum at first and permanently become his liking which he continuously attends to weekend class. He practices every day for at least 30 minutes to an hour.
We take step forward to measure his efforts in this field by registering him for Drum Yamaha Grade 10 Examination. We want to expose him playing in front of examiners and to develop his self confidence.
He practices nearly every day using his electronics drum. So far according to his teacher, he is able to do it.
hadeef yamaha drum grade examination session
Yamaha Grade Examination was held at YAMAHA centre in Kelana Jaya. Now we need to wait for the results which according to staff result will take around 1 month to be released.
Mom and Dad always Pray for you Hadeef! Best of Luck!
Popular nasi goreng ayam kunyit at Putrajaya Parcel C. It is sold at pasar tani Parcel C every Thursday.
I really like the chicken, the taste is delicious and crunchy. The seller puts soy ketchup and sambal chillis. The combination blend well when eating.
It is so popular, the queue is long but the good thing the nasi goreng ayam kunyit sellers are really efficient in preparing the food so you don’t have to wait very long.
My Panasonic aircond recently just blowed hot air. I have Panasonic EcoNavi 1.5HP model CS-CU12PKH.
I asked my regular serviceman to check it. According to him, the compressor was broken and suggested to change to another compressor or new aircond which cost a whopping RM2,000. My Panasonic aircond is just 5 years old and I service it regularly.
Finding The Right Serviceman
I didn’t believe because the way he explained was not convincing and the way he checked didn’t have step by step troubleshooting. Furthermore if compressor is broken, the power will trip.
So I had to check for second opinion with many aircond servicemen. I explained the symptoms where the aircond blowed hot air, all the LED didn’t show any red lights but sometimes if I switch on the aircond it is cold but water was dripping.
To my dismay most of them couldn’t detect what possibly the aircond problems. They wanted to check and will charge me for going to my house if I didn’t replace any parts.
I personally doesn’t have confidence in them because for me if you are expert you could possibly have some hypothesis what went wrong.
Found The Solution
Fortunately I contacted Aircond Tech which I got their contact from Mudah.My. I explained to them the symptoms and they were able to zoom that possibly the sensor is broken. So I gave it a try and asked them to come to my house.
Aircond Tech came to my house and replaced my Panasonic aircond sensor and voila! It works. Now cold air is coming out.
Now I’m observing the repair works whether it is totally repaired. I notice that the aircond fan quiet strong and it keeps blowing cold air even though it is cold already. Last time, the aircond fan would slow down if the temperature is cold to the set temperature.
Nearly after 2 weeks, the aircond doesnt produce any cold air anymore. Again, I contacted Zul telling the problem. According to the technician possibly it is the capacitor this time.
So after replacing the capacitor the aircond becomes cold again!
panasonic aircond capacitor
But I feel uncomfortable to replace two parts in short time. I am wondering whether the sensor is really broken or actually it is the capacitor is broken at first place.